package main
import "fmt"

import amqp "github.com/rabbitmq/amqp091-go"
import rabbitmq "midware/rabbitmq"

/**
   module 名字,不是目录的名字

*/
func main(){
	conn, err := amqp.Dial("amqp://guest:guest@localhost:5672/")
	if err!=nil{
		fmt.Println(conn)
	}
	fmt.Println("能够连接上")
	rabbitmq.SendExchange()
	// rabbitmq.Received()
	rabbitmq.ReceivedKey()
}